import QtQuick 2.0

Item {
    width: parent.width
    height: parent.height

    property int widthItem: 60 * m_ratio
    property int heightItem: 60 * m_ratio

    Row {
        width: parent.width
        height: parent.height
        SocialItem {
            id: id_facebook
            sourceImage: "qrc:/images/resources/logo_acc_face.png"
            title: "Facebook"

            onClickItem: {
                id_facebook.check_item = 1;
                id_zingme.check_item = 0;
                id_google.check_item = 0;
                id_messageSMS.check_item = 0;

                console.log("Facebook ++++++++++++++++++++++++++++++")
            }

        }

        SocialItem {
            id: id_zingme
            sourceImage: "qrc:/images/resources/logo_acc_zing.png"
            title: "Zingme"

            onClickItem: {
                id_facebook.check_item = 0;
                id_zingme.check_item = 1;
                id_google.check_item = 0;
                id_messageSMS.check_item = 0;

                console.log("Zingme ++++++++++++++++++++++++++++++")
            }
        }

        SocialItem {
            id: id_google
            sourceImage: "qrc:/images/resources/logo_acc_zing.png"
            title: "Google"

            onClickItem: {
                id_facebook.check_item = 0;
                id_zingme.check_item = 0;
                id_google.check_item = 1;
                id_messageSMS.check_item = 0;

                console.log("Google ++++++++++++++++++++++++++++++")
            }
        }

        SocialItem {
            id: id_messageSMS
            sourceImage: "qrc:/images/resources/logo_acc_zing.png"
            title: "Text (SMS)"

            onClickItem: {
                id_facebook.check_item = 0;
                id_zingme.check_item = 0;
                id_google.check_item = 0;
                id_messageSMS.check_item = 1;

                console.log("Text (SMS) ++++++++++++++++++++++++++++++")
            }
        }

    }
}
